package com.king.designpatterns.设计模式对比.结构模型对比.装饰模式;

/**
 * 抽象装饰类
 *
 * @author king
 * @date 2021-06-17 22:15
 */
public abstract class Decorator implements IStar{
    private IStar star;

    public Decorator(IStar star) {
        this.star = star;
    }

    @Override
    public void action(String context) {
        this.star.action(context);
    }
}
